package com.ccq.service;

import com.alibaba.fastjson.JSON;
import com.ccq.mapper.RecomMapper;
import com.ccq.mapper.RecordMapper;
import com.ccq.model.Recom;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewhourseService {
    @Autowired
    RecomMapper recomMapper;

    public String recomlst(){
        List<Recom> ls=recomMapper.selectalldata();
        String aListJson = JSON.toJSONString(ls);
        return aListJson;
    }
}
